package com.ruoyi.base.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 在线-设备对象 BUS_PS_BAS_EQUIPMENT
 * 
 * @author maliang
 * @date 2025-09-22
 */
public class BusPsBasEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备编号 */
    private String datagathercode;

    private String polluteid;

    private String pollutename;

    private String countycode;

    private String county;

    /** 污染源编码 */
    @Excel(name = "污染源编码")
    private String entcode;

    /** 排口编号 */
    @Excel(name = "排口编号")
    private String outportcode;

    private String outportname;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String devicename;

    /** 经度 */
    @Excel(name = "经度")
    private Double longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double latitude;

    /** 设备通信传输方式 */
    @Excel(name = "设备通信传输方式")
    private String datatransway;

    /** 设备状态（0:启用，1：停用） */
    @Excel(name = "设备状态", readConverterExp = "0=:启用，1：停用")
    private Integer runstate;

    /** 数据包通信传输方式 */
    @Excel(name = "数据包通信传输方式")
    private String communicationtype;

    /** 上次更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdatetime;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedate;

    /** 在线状态（0表示离线，1表示在线） */
    @Excel(name = "在线状态", readConverterExp = "0=表示离线，1表示在线")
    private Integer onlinestatus;

    /** 是否启用（0:启用，1：注销） */
    @Excel(name = "是否启用", readConverterExp = "0=:启用，1：注销")
    private Integer isused;

    /** 单位编号 */
    @Excel(name = "单位编号")
    private String unitcode;

    /** 仪器型号 */
    @Excel(name = "仪器型号")
    private String montiortype;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String datasource;

    public void setDatagathercode(String datagathercode) 
    {
        this.datagathercode = datagathercode;
    }

    public String getDatagathercode() 
    {
        return datagathercode;
    }

    public void setEntcode(String entcode) 
    {
        this.entcode = entcode;
    }

    public String getEntcode() 
    {
        return entcode;
    }

    public void setOutportcode(String outportcode) 
    {
        this.outportcode = outportcode;
    }

    public String getOutportcode() 
    {
        return outportcode;
    }

    public void setDevicename(String devicename) 
    {
        this.devicename = devicename;
    }

    public String getDevicename() 
    {
        return devicename;
    }

    public void setLongitude(Double longitude) 
    {
        this.longitude = longitude;
    }

    public Double getLongitude() 
    {
        return longitude;
    }

    public void setLatitude(Double latitude) 
    {
        this.latitude = latitude;
    }

    public Double getLatitude() 
    {
        return latitude;
    }

    public void setDatatransway(String datatransway) 
    {
        this.datatransway = datatransway;
    }

    public String getDatatransway() 
    {
        return datatransway;
    }

    public void setRunstate(Integer runstate) 
    {
        this.runstate = runstate;
    }

    public Integer getRunstate() 
    {
        return runstate;
    }

    public void setCommunicationtype(String communicationtype) 
    {
        this.communicationtype = communicationtype;
    }

    public String getCommunicationtype() 
    {
        return communicationtype;
    }

    public void setLastupdatetime(Date lastupdatetime) 
    {
        this.lastupdatetime = lastupdatetime;
    }

    public Date getLastupdatetime() 
    {
        return lastupdatetime;
    }

    public void setUpdatedate(Date updatedate) 
    {
        this.updatedate = updatedate;
    }

    public Date getUpdatedate() 
    {
        return updatedate;
    }

    public void setOnlinestatus(Integer onlinestatus) 
    {
        this.onlinestatus = onlinestatus;
    }

    public Integer getOnlinestatus() 
    {
        return onlinestatus;
    }

    public void setIsused(Integer isused) 
    {
        this.isused = isused;
    }

    public Integer getIsused() 
    {
        return isused;
    }

    public void setUnitcode(String unitcode) 
    {
        this.unitcode = unitcode;
    }

    public String getUnitcode() 
    {
        return unitcode;
    }

    public void setMontiortype(String montiortype) 
    {
        this.montiortype = montiortype;
    }

    public String getMontiortype() 
    {
        return montiortype;
    }

    public void setDatasource(String datasource) 
    {
        this.datasource = datasource;
    }

    public String getDatasource() 
    {
        return datasource;
    }

    public String getPolluteid() {
        return polluteid;
    }

    public void setPolluteid(String polluteid) {
        this.polluteid = polluteid;
    }

    public String getPollutename() {
        return pollutename;
    }

    public void setPollutename(String pollutename) {
        this.pollutename = pollutename;
    }

    public String getOutportname() {
        return outportname;
    }

    public void setOutportname(String outportname) {
        this.outportname = outportname;
    }

    public String getCountycode() {
        return countycode;
    }

    public void setCountycode(String countycode) {
        this.countycode = countycode;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("datagathercode", getDatagathercode())
            .append("entcode", getEntcode())
            .append("outportcode", getOutportcode())
            .append("devicename", getDevicename())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("datatransway", getDatatransway())
            .append("runstate", getRunstate())
            .append("communicationtype", getCommunicationtype())
            .append("lastupdatetime", getLastupdatetime())
            .append("remark", getRemark())
            .append("updatedate", getUpdatedate())
            .append("onlinestatus", getOnlinestatus())
            .append("isused", getIsused())
            .append("unitcode", getUnitcode())
            .append("montiortype", getMontiortype())
            .append("datasource", getDatasource())
            .toString();
    }
}
